package work.xiaohong.common.constant;

/**
 * @author xiaohong
 * @version 1.0
 * @date 2021/9/25 0025 13:51
 * @description 消息类型
 */
public enum MessageType {
    HEART(0,"心跳消息"),
    TEXT(1,"文本消息"),
    VOICE(2,"音频消息"),
    VIDEO(3,"视频消息"),
    IMAGE(4,"图片消息"),
    EMOJI(5,"表情消息"),
    FILE(6,"文件消息"),
    DOC(7,"在线文档消息"),
    LINK(8,"链接消息"),
    HEARTRESPONSE(10,"心跳响应消息"),
    UPDATEMSGSTATUS(11,"消息状态更新"),
    FRIENDREQUEST(12,"好友请求消息");

    private Integer type;
    private String description;

    MessageType(Integer type, String description) {
        this.type = type;
        this.description = description;
    }

    public Integer getType() {
        return type;
    }

    public String getDescription() {
        return description;
    }
}
